/*
 * @Description  :
 * @Version      : 1.0
 * @Author       : Shiming
 * @Date         : 2021-12-27 10:30:56
 * @LastEditors  : Shiming
 * @LastEditTime : 2022-05-17 11:19:41
 * @FilePath     : \\tms-obc-web\\src\\app\\routes\\tax-management\\services\\tax-management.service.ts
 * Copyright (C) 2022 huzhenhong. All rights reserved.
 */

import { Injectable, Injector } from '@angular/core';
import { _HttpClient } from '@delon/theme';
import { ShipperBaseService } from '@shared';

@Injectable({
  providedIn: 'root'
})
export class TaxManagementService extends ShipperBaseService {
  // 获取货主企业列表
  public $api_enterpriceList = '/api/mdc/cuc/enterpriseInfo/operate/enterpriceList';
  //
  public $api_order_reporting_page = '/api/mdc/cuc/enterpriseInfo/operate/enterpriceList';

  // 查询运营报表
  $api_listOperationalReportPage = `/api/sdc/report/listOperationalReportPage`;

  // 查询个税申报明细
  $api_get_individual_income_page = `/api/sdc/taxIncome/list/page`;
  // 更新所有数据个税申报明细
  $api_update_individual_income_page = `/api/sdc/taxIncome/updateAll`;

  // 查询个税汇总
  $api_get_individual_collect_page = `/api/sdc/taxSummary/list/page`;
  // 更新所有数据个税汇总
  $api_update_individual_collect_page = `/api/sdc/taxIncome/updateAll`;

  // 订单上报列表
  $api_getTaxOrderPage_page = `/api/sdc/taxOrder/getTaxOrderPage`;
  // 订单上报列表
  $api_getTaxOrderPage_page_export = `/api/sdc/taxOrder/asyncExport`;
  // 根据订单Id更新税务订单
  $api_get_renewalOrderById = `/api/sdc/taxOrder/renewalOrderById`;
  // 撤回税务订单
  $api_get_recessionTaxOrder = `/api/sdc/tax/recessionTaxOrder`;
  // 上传税务订单
  $api_get_uploadingTaxOrder = `/api/sdc/taxOrder/orderUploadDJtax`;
  // 上传税务订单
  $api_get_getTaxFieldCheckList = `/api/sdc/taxFieldCheck/getTaxFieldCheckList`;

  // 查询税务申报
  $api_get_taxDeclaration = `/api/sdc/taxDeclaration/list/page`;
  // 更新所有税务申报
  $api_get_taxDeclaration_updateAll = `/api/sdc/taxDeclaration/updateAll`;
  // 更新所有个税汇总
  $api_get_updateData = `/api/sdc/taxSummary/updateData`;
  $api_recall_reporting = ``; // 撤回
  $api_async_export_order_reporting_list = ``; // 导出订单上报
  $api_get_upload_setting = ``; // 修改上传设置
  $api_upload_setting_save = ``; // 修改上传设置
  // 获取发票上传列表
  $api_getInvoiceReport_page = '/api/sdc/invoiceUploadInfo/list/page';
  // 发票上传列表导出
  $api_invoiceUpload_export = '/api/sdc/invoiceUploadInfo/exportInvoiceUpload';
  // 个税明细导出接口
  $api_taxIncome_export = '/api/sdc/taxIncome/asyncExport';
  // 个税汇总导出接口
  $api_taxSummary_export = '/api/sdc/taxSummary/asyncExport';
  // 税务申报导出接口
  $api_taxDeclaration_export = '/api/sdc/taxDeclaration/asyncExport';
  // 发票上传撤回
  $api_invoiceUpload_withdraw = '/api/sdc/invoiceUploadInfo/withdraw';
  // 修改起征点
  $api_fixThreshold = '/api/sdc/taxIncome/fixThreshold';
  //申报
  $api_declare_tax = `/api/sdc/taxDeclaration/declare`;
  //申报
  $api_declare = `/api/sdc/taxSummary/declare`;
  //申报 个税明细
  $api_taxIncome_declare = `/api/sdc/taxIncome/declare`;
  //上传 发票上传
  $api_uploadInvoice = `/api/sdc/invoiceUploadInfo/uploadInvoice`;
  constructor(public injector: Injector) {
    super(injector);
  }
}
